I have this test scenario that get store parameters
it('getStoreParams', () => {
wrapper = shallowMount(LineDiffGraph, {store, localVue});
const vm = wrapper.vm;
let a = wrapper.vm.getStoreParams(vm);
expect(a).toBe(null);
vm.menuId = null;
util.errorTest(wrapper.vm.getStoreParams, [vm]);
a = wrapper.vm.getStoreParams(null);
expect(a).toBe(undefined);
});
but the vm.menuId = null is giving the result "UnhandledPromiseRejection" I'm new to jest, I would be very grateful if anyone has the answer about this one